package com.bestcem.xm.survey.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * 主要是自动填充orgId和userId
 *
 * @author chenglong.yue <chenglong.yue@idiaoyan.com>
 * @date 2022/8/4 15:47
 */
@Configuration(proxyBeanMethods = false)
public class QueryConfiguration implements WebMvcConfigurer {

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        argumentResolvers.add(new QueryArgumentResolver());
    }
}
